import { request } from "@/utils/request";

//  上下分申请-列表
export function reqUpdownList(params: Record<string, any>) {
  return request({
    url: "/roomManage/apply/updown/list",
    method: "get",
    params
  });
}

//  上下分申请-通过
export function reqUpdownPass(Id: number) {
  return request({
    url: "/roomManage/apply/updown/pass",
    method: "post",
    data: {
      Id
    }
  });
}

//  上下分申请-驳回
export function reqUpdownReject(Id: number) {
  return request({
    url: "/roomManage/apply/updown/reject",
    method: "post",
    data: {
      Id
    }
  });
}

//  进房审核-列表
export function reqJoinRoomList(params: Record<string, any>) {
  return request({
    url: "/roomManage/apply/joinRoom/list",
    method: "get",
    params
  });
}

//  进房审核-通过
export function reqJoinRoomPass(Id: number) {
  return request({
    url: "/roomManage/apply/joinRoom/pass",
    method: "post",
    data: {
      Id
    }
  });
}

//  上下分申请-驳回
export function reqJoinRoomReject(Id: number) {
  return request({
    url: "/roomManage/apply/joinRoom/reject",
    method: "post",
    data: {
      Id
    }
  });
}

// 进房审核记录
export function reqJoinRoomRecordList(params: Record<string, any>) {
  return request({
    url: "/roomManage/apply/joinRoomRecord/list",
    method: "get",
    params
  });
}
